<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <body>
    <h:form>
        <h:commandButton value="Send" action="#{fileUploadManagerBean.sendSQToCustomerTest()}"/>

        <p:panel header="Profile Picture" rendered="#{fileUploadManagerBean.profileShouldRendered()}">
            <p:graphicImage id="profileImage" value="#{facesContext.externalContext.requestContextPath}/../displayImage?id=#{fileUploadManagerBean.getProfileImageId()}" 
                            height="177" width="177"/>
        </p:panel>

        <p:lightBox iframe="true" width="80%" height="80%" rendered="#{documentFlowManagerBean.renderViewSQUploaded()}">  
            <h:outputLink value="/merlion-war/displayImage">
                <f:param name="id" value="#{documentFlowManagerBean.selectedSalesOrder.purchaseOrder.salesQuotation.uploadedImage.id}" /> 
                <h:outputText value="View Uploaded Sales Quotation" />
            </h:outputLink> 
        </p:lightBox> 

        <p:lightBox iframe="true" width="80%" height="80%" rendered="#{documentFlowManagerBean.renderViewPOUploaded()}">  
            <h:outputLink value="/merlion-war/displayImage">
                <f:param name="id" value="#{documentFlowManagerBean.selectedSalesOrder.purchaseOrder.uploadedImage.id}" /> 
                <h:outputText value="View Uploaded Purchase Order" />
            </h:outputLink> 
        </p:lightBox>

        <h:outputLink value="/merlion-war/CommonUtility/jasperreports" target="_blank">
            <f:param name="type" value="salesQuotation" /> 
            <f:param name="strId" value="10154" />
            <h:outputText value="Sales Quotation to PDF" />
        </h:outputLink>
        <p:lightBox iframe="true" width="80%" height="80%">  
            <h:outputLink value="/merlion-war/CommonUtility/jasperreports">
                <f:param name="type" value="salesQuotation" /> 
                <f:param name="strId" value="10154" />
                <h:outputText value="Sales Quotation to PDF" />
            </h:outputLink> 
        </p:lightBox>  
        <p:lightBox iframe="true" width="80%" height="80%">  
            <h:outputLink value="http://www.primefaces.org" title="PrimeFaces HomePage">  
                <h:outputText value="PrimeFaces HomePage"/>  
            </h:outputLink>  
        </p:lightBox>
    </h:form>

</body>
</html>
